package com.smartcachemobile;

import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

@TargetApi(9)
public class MainActivity extends Activity
{
  private AsyncProxyTask proxyTask = null;

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903040);
    Button localButton = (Button)findViewById(2131230720);
    localButton.setOnClickListener(new View.OnClickListener(localButton)
    {
      public void onClick(View paramView)
      {
        if (MainActivity.this.proxyTask == null)
        {
          MainActivity.this.proxyTask = new AsyncProxyTask();
          MainActivity.this.proxyTask.execute(new String[0]);
          this.val$buttonStartStop.setText("Stop");
          return;
        }
        MainActivity.this.proxyTask.cancel(true);
        MainActivity.this.proxyTask = null;
        this.val$buttonStartStop.setText("Start");
      }
    });
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    getMenuInflater().inflate(2131165184, paramMenu);
    return true;
  }
}

/* Location:           C:\Users\n.inchingolo\Desktop\classes_dex2jar.jar
 * Qualified Name:     com.smartcachemobile.MainActivity
 * JD-Core Version:    0.6.0
 */